package com.cyl.manager.oms.domain.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 用户控制对象 fh_user
 *
 * @author oy
 * @date 2024-11-12
 */
@TableName("fh_user")
@ApiModel(value = "FhUser", description = "用户实体")
public class FhUserInfo extends BaseEntity
{


    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 账户名 */
//    @ApiModelProperty("账户名")
    @Excel(name = "账户名")
    private String account;

    /** 手机号或者账号 **/
    @ApiModelProperty("手机号或者账号")
    @Excel(name = "手机号或者账号")
    private String accountOrPhone;

    public String getAccountOrPhone() {
        return accountOrPhone;
    }

    public void setAccountOrPhone(String accountOrPhone) {
        this.accountOrPhone = accountOrPhone;
    }

    /** 密码 */
    @ApiModelProperty("密码")
    @Excel(name = "密码")
    private String password;

    /** 手机号 */
//    @ApiModelProperty("手机号")
    @Excel(name = "手机号")
    private String phone;

    /** 微信标识 */
    @Excel(name = "微信标识")
    private String weixin;

    /** qq标识 */
    @Excel(name = "qq标识")
    private String qq;

    /** 头像 */
    @Excel(name = "头像")
    private String image;

    /** 姓名 */
    @Excel(name = "姓名")
    private String name;

    /** 性别 */
//    @ApiModelProperty("性别")
    @Excel(name = "性别")
    private String gender;

    /** 位置 */
    @Excel(name = "位置")
    private String position;

    /** 简介 */
    @Excel(name = "简介")
    private String profile;

    /** 邮箱 */
    @Excel(name = "邮箱")
    private String email;

    /** 状态(0使用，1禁用) */
    @Excel(name = "状态(0使用，1禁用)")
    private String status;

    /** 登录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "登录时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date loginDate;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setAccount(String account)
    {
        this.account = account;
    }

    public String getAccount()
    {
        return account;
    }
    public void setPassword(String password)
    {
        this.password = password;
    }

    public String getPassword()
    {
        return password;
    }
    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }
    public void setWeixin(String weixin)
    {
        this.weixin = weixin;
    }

    public String getWeixin()
    {
        return weixin;
    }
    public void setQq(String qq)
    {
        this.qq = qq;
    }

    public String getQq()
    {
        return qq;
    }
    public void setImage(String image)
    {
        this.image = image;
    }

    public String getImage()
    {
        return image;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setGender(String gender)
    {
        this.gender = gender;
    }

    public String getGender()
    {
        return gender;
    }
    public void setPosition(String position)
    {
        this.position = position;
    }

    public String getPosition()
    {
        return position;
    }
    public void setProfile(String profile)
    {
        this.profile = profile;
    }

    public String getProfile()
    {
        return profile;
    }
    public void setEmail(String email)
    {
        this.email = email;
    }

    public String getEmail()
    {
        return email;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setLoginDate(Date loginDate)
    {
        this.loginDate = loginDate;
    }

    public Date getLoginDate()
    {
        return loginDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("account", getAccount())
            .append("password", getPassword())
            .append("phone", getPhone())
            .append("weixin", getWeixin())
            .append("qq", getQq())
            .append("image", getImage())
            .append("name", getName())
            .append("gender", getGender())
            .append("position", getPosition())
            .append("profile", getProfile())
            .append("email", getEmail())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("loginDate", getLoginDate())
            .toString();
    }
}
